package com.zhonghui.mapper;

import com.zhonghui.annotation.AutoFill;
import com.zhonghui.enumeration.OperationType;
import com.zhonghui.model.User;
import com.zhonghui.vo.UserListVo;
import com.zhonghui.vo.UserRecordVo;
import org.apache.ibatis.annotations.Mapper;

import java.lang.reflect.Type;
import java.util.List;

/**
 * @description 用户信息-Mapper
 * @author zhonghui
 * @date 2020-11-29
 */
@Mapper
public interface UserMapper  {
    User getUserByPhone(String phone);

    User getUserByEmail(String  email);

    User getUserById(Long id);

    List<User> getUserList();

    @AutoFill(OperationType.INSERT)
    Integer createUser(User user);

    @AutoFill(OperationType.UPDATE)
    Integer updateUser(User user);
}
